package com.baizhi.controller;

import com.baizhi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzm
 * @version 1.0
 * @description: TODO
 * @date 2022/6/14 17:07
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/find")
    public String find() {
        String result = userService.find("lzm");
        return result;
    }

    @GetMapping("/find2")
    public Integer find2(Integer a,Integer b) {
        return a * b;
    }

}
